package com.yt.product.server;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.yt.product.server.mapper")
@ComponentScan(basePackages = {"com.yt.product", "com.yt.db"})
@EnableDubbo
public class ProductApplication {
    public static void main(String[] args) {
        // 解决 Microsoft JDK extnet 错误
        System.setProperty("jdk.net.ext.check", "false");
        System.setProperty("jdk.net.usePlainSocketServer", "true");
        
        SpringApplication.run(ProductApplication.class, args);
        System.out.println("Product Service Started!");
    }
}